package com.bbzn.device.client;


import com.bbzn.device.comment.res.DeviceRes;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author jncehuang
 * @Date 2021/11/08 11:00
 * @Version 2.0
 */
@FeignClient("device")
@RequestMapping("device")
public interface DeviceClient {

    @PostMapping("/isHasDeviceByUsers")
    boolean isHasDeviceByUsers(@RequestBody Long userId) throws Exception;

    @PostMapping("/selByImei")
    DeviceRes selByImei(@RequestBody String imei) throws Exception;
}









